home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / prcgntn1.lha / Precognition / source / ValuatorClass.h < prev    next >
C/C++ Source or Header  |  1992-12-23  |  3KB  |  120 lines

  1. /* ==========================================================================
  2. **
  3. **                   ValuatorClass.h
  4. **
  5. ** ⌐1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef VALUATORCLASS_H
  11. #define VALUATORCLASS_H
  12.  
  13. #include "InteractorClass.h"
  14. #include "Valuator.h"
  15.  
  16.  
  17. struct ValuatorClass
  18. {
  19.    Class *isa;
  20.    char  *ClassName;
  21.  
  22.    void   (*CleanUp)
  23.             ( Valuator *self );
  24.    Point (*Location)
  25.             ( Valuator *self );
  26.    Point (*SetLocation)
  27.             ( Valuator *self,
  28.               PIXELS    LeftEdge,
  29.               PIXELS    TopEdge );
  30.    Point (*Size)
  31.             ( Valuator *self );
  32.    Point (*AskSize)
  33.             ( Valuator *self,
  34.               PIXELS    Width,
  35.               PIXELS    Height );
  36.    Point (*SetSize)
  37.             ( Valuator *self,
  38.               PIXELS    Width,
  39.               PIXELS    Height );
  40.  
  41.    UWORD (*SizeFlags)( Valuator *self );
  42.  
  43.    void (*Render)
  44.             ( Valuator *self,
  45.               RastPort *RPort );
  46.  
  47.    BOOL (*SetTitle)
  48.             ( Valuator *self,
  49.               char      *title );
  50.  
  51.    char *(*Title)
  52.             ( Valuator *self );
  53.  
  54.    AlignInfo (*TextAlignment)( GraphicObject *self );
  55.  
  56.    AlignInfo (*SetTextAlignment)
  57.             ( GraphicObject *self,
  58.               UBYTE         Flags,
  59.               BYTE          Xpad,
  60.               BYTE          Ypad );    Class *BuilderMethods;
  61.  
  62.    struct pcgWindow *(*InteractorWindow)
  63.             ( Valuator *self );
  64.  
  65.    void (*SetInteractorWindow)
  66.             ( Valuator          *self,
  67.               struct pcg_Window *window );
  68.  
  69.    Gadget *(*FirstGadget)
  70.             ( Valuator *self );
  71.  
  72.    USHORT (*nGadgets)
  73.             ( Valuator *self );
  74.  
  75.    ULONG (*IDCMPFlags)
  76.             ( Valuator *self );
  77.  
  78.    USHORT (*ClaimEvent)
  79.             ( Valuator     *self,
  80.               IntuiMessage *event );
  81.  
  82.    USHORT (*Respond)
  83.             ( Valuator     *self,
  84.               IntuiMessage *event );
  85.  
  86.    void (*Refresh)
  87.             ( Valuator    *self );
  88.  
  89.    BOOL (*EnableIactor)
  90.             ( Valuator *self,
  91.               BOOL      enable );
  92.  
  93.    BOOL (*isEnabled)
  94.             ( Valuator *self  );
  95.  
  96.    BOOL (*Activate)
  97.             ( Valuator *self,
  98.               BOOL      activate );
  99.  
  100.    BOOL (*isActive)
  101.             ( Valuator *self );
  102.  
  103.  
  104. /*--- New Methods ----------------------------*/
  105.  
  106.    LONG (*Value)
  107.             ( Valuator *self );
  108.  
  109.    LONG (*SetValue)
  110.             ( Valuator *self,
  111.               LONG      selection );
  112.  
  113. };
  114.  
  115.  
  116. struct ValuatorClass *ValuatorClass( void );
  117.  
  118. void ValuatorClass_Init( struct ValuatorClass *class );
  119.  
  120. #endif